package com.kun.dao;

import com.kun.entity.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface DeptDao {

    public int insertDept(Dept dept);

    public int deleteDept(Long id);

    public int updateDept(Dept dept);

    public Dept getDeptById(Long id);

    public List<Dept> queryAllDepts();


}
